<!DOCTYPE html>
<html lang="zh-CN" xmlns:th="http://www.thymeleaf.org">
<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <title>归档</title>
  <!-- Tell the browser to be responsive to screen width -->
  <meta name="viewport" content="width=device-width, initial-scale=1">

  <!-- Theme style -->
  <link rel="stylesheet" th:href="@{/css/adminlte.min.css}">
  <link rel="stylesheet" th:href="@{/css/my.css}">
  <!-- Font Awesome -->
  <link rel="stylesheet" th:href="@{/plugins/fontawesome-free/css/all.min.css}">
  <link href="https://cdn.bootcdn.net/ajax/libs/animate.css/4.1.1/animate.compat.css" rel="stylesheet">
</head>
<body class="hold-transition sidebar-mini layout-fixed">
<div class="wrapper">
  <!-- Navbar -->
  <nav class="main-header  animated fadeInDown navbar navbar-expand navbar-white navbar-light ">
    <!-- Left navbar links -->
    <ul class="navbar-nav animated fadeIn">
      <li class="nav-item">
        <!-- PushMenu插件控制主侧栏的切换按钮。
        用法
        该插件可以作为jQuery插件或使用数据API激活。
        数据API
        添加data-widget="pushmenu"到按钮以激活插件。-->
        <a class="nav-link" data-widget="pushmenu" href="#" role="button"><i class="fa fa-bars"></i></a>
      </li>
      <li class="nav-item d-none d-sm-inline-block">
        <h3 class="nav-link"
            style="position: absolute; right: 10px; color: black; font-family: 'STXingkai';">
          「愿望 重新 开始」
         </h3>
      </li>

    </ul>

    <!-- SEARCH FORM -->
    <form class="form-inline ml-3" th:action="@{/search}">
      <div class="input-group input-group-sm">
        <input name="blogName" class="form-control form-control-navbar" type="search" placeholder="按博客名搜索..."
               aria-label="Search">
        <div class="input-group-append">
          <button class="btn btn-navbar" type="submit">
            <i class="fa fa-search"></i>
          </button>
        </div>
      </div>
    </form>
  </nav>
  <!-- /.navbar -->

  <!-- Main Sidebar Container -->
  <aside class="main-sidebar sidebar-light-primary  elevation-4 animated fadeInLeft">
    <!-- 左侧容器头-->
    <h1>
      <a th:href="@{index}" class="brand-link">
        <img th:src="@{/upload/avatar.jpg}" class="brand-image img-circle elevation-3">
        <span class="brand-text font-weight-light"><h3 style="color: black">WhyBlog</h3></span>
      </a>
    </h1>
    <!-- Sidebar -->
    <!--     被选中的颜色-->
    <div class="sidebar ">
      <!-- Sidebar Menu -->
      <nav class="mt-4">
        <ul class="nav nav-pills nav-sidebar flex-column" data-widget="treeview" role="menu"
            data-accordion="false">
          <!-- Add icons to the links using the .nav-icon class
               with font-awesome or any other icon font library -->
          <li class="nav-header">刀斩肉身</li>
          <li class="nav-item ">
            <a th:href="@{/index}" class="nav-link" >
              <i class="fa fa-home nav-icon"></i>
              <p>首页</p>
            </a>
          </li>
          <li class="nav-item">
            <a th:href="@{/type}" class="nav-link">
              <i class="fa fa-bookmark nav-icon"></i>
              <p>分类</p>
            </a>
          </li>
          <li class="nav-item">
            <a href="https://leetcode-cn.com/u/why-21/" target="_blank" class="nav-link">
              <i class="fa fa-tags nav-icon"></i>
              <p>leetCode主页</p>
            </a>
          </li>

          <li class="nav-header">心斩灵魂</li>
          <li class="nav-item">
            <a th:href="@{/archive}" class="nav-link active" >
              <i class="fa fa-archive nav-icon"></i>
              <p>归档</p>
            </a>
          </li>

          <li class="nav-header">心斩灵魂</li>
          <li class="nav-item">
            <a class="nav-link" onclick="alert('页面开发中~')">
              <i class="fa fa-archive nav-icon"></i>
              <p>我的学习路线</p>
            </a>
          </li>


        </ul>
      </nav>
      <!-- /.sidebar-menu -->
    </div>
    <!-- /.sidebar -->
  </aside>

  <!-- Content Wrapper. Contains page content -->
  <div class="content-wrapper mt-3">
    <!-- Main content -->
    <section class="content">
      <div class="container-fluid">
        <div class="row">
          <div class="col-md-9">
            <!-- The time line -->
            <div class="timeline" th:each="year:${years}">
              <!-- timeline time label -->
              <div class="time-label">
                <span class="bg-gradient-primary" th:text="${year.key}"></span>
              </div>
              <!-- /.timeline-label -->
              <!-- timeline item -->
              <div>
                <div class="timeline-item">
                  <div class="card card-primary card-outline">
                    <div class="card-body p-0">
                      <ul class="list-group">
                        <li class="list-group-item bg-hover-gray" th:each="blog:${year.value}">
                          <a th:href="'/detail/'+${blog.id}" target="_blank" class="d-block link-title text-truncate" th:text="${blog.name}">Java学习路线Java学习路线Java学习路线Java学习路线</a>
                        </li>

                      </ul>
                    </div>
                    <!-- /.card-body -->
                  </div>
                </div>
              </div>
              <!-- END timeline item -->
            </div>
          </div>
          <!-- /.col -->
        </div>
        <!-- /.row -->
      </div><!-- /.container-fluid -->
    </section>
    <!-- /.content -->
  </div>
  <!-- /.content-wrapper -->
  <footer class="main-footer">
    <p class="text-center mb-1">
      Powered by AdminLTE
    </p>
    <p class="text-center">
      <a href="http://beian.miit.gov.cn" target="_blank">辽ICP备2020013405号</a>
    </p>
  </footer>
</div>
<!-- ./wrapper -->

<!-- jQuery -->
<script th:src="@{/plugins/jquery/jquery.min.js}"></script>
<!-- Bootstrap 4 -->
<script th:src="@{/plugins/bootstrap/js/bootstrap.bundle.min.js}"></script>
<!-- AdminLTE App -->
<script th:src="@{/js/adminlte.min.js}"></script>
<!--  -->
<script th:src="@{/js/tooltip.init.js}"></script>

</body>
</html>
